package com.ruoyi.user.service.impl;

import com.ruoyi.common.core.cg.pojo.Store;
import com.ruoyi.user.mapper.StoreMapper;
import com.ruoyi.user.service.StoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StoreServiceImpl implements StoreService {
    @Autowired
    private StoreMapper mapper;
    @Override
    public Store findById(Integer id) {
        return mapper.findById(id);
    }

    @Override
    public Store findStoreByGroupId(Integer id) {
        return mapper.findStoreByGroupId(id);
    }

    @Override
    public void addStoreOrder(Integer storeId, Integer oid) {
        mapper.addStoreOrder(storeId,oid);
    }
}
